from flask import Blueprint
from . import case, case_group, user, space, login, log, job, visual,server_log,captcha_code


def create_blueprint_v1():
    # 实例化蓝图
    bp_v1 = Blueprint('api', __name__)
    # 注册红图到蓝图上
    case_group.api.register(bp_v1)
    user.api.register(bp_v1)
    space.api.register(bp_v1)
    case.api.register(bp_v1)
    login.api.register(bp_v1)
    log.api.register(bp_v1)
    job.api.register(bp_v1)
    visual.api.register(bp_v1)
    server_log.api.register(bp_v1)
    captcha_code.api.register(bp_v1)
    return bp_v1
